import { importModel } from "../importModel/index.js"
import { sequelize } from "../../config/index.js"

export function sync() {
  importModel()
  sequelize.authenticate().then(res => {
    console.log('连接成功')
    sequelize.sync().then(res => {
      console.log('同步成功')
    }).catch(err => console.log('同步失败'))
  }).catch(err => console.log('连接失败'))
}